l = ["springmvc","springframework-4.1.6.RELEASE","log4j","org.slf4j"]
l.append("javax-servlet")

print(l)


# l.pop(0)
# print(l)

# for item in l:
# 	print(item)

# for i,item in enumerate(l):
# 	print("index=", i, "item=", item)

def find_spring(str):
	if(str.find("spring") == 0):
		return str
	

springs = map(find_spring, l)
for s in springs:
	print("spring=", s)


springs = filter(lambda item: item.find("spring") == 0, l)
print(springs)
for s in springs:
	print("spring=", s)